package com.mly.service.imp;

import com.alibaba.fastjson.JSONObject;
import com.mly.dao.ArticleDao;
import com.mly.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import orm.base.Ex.BaseServiceEx;

import java.util.Map;

/**
 * Created by ashin on 2018/3/27.
 */
@Service
public class ArticleServiceImp extends BaseServiceEx implements ArticleService {

    @Autowired
    ArticleDao articleDao;

    @Override
    public void init() {
        super.init(articleDao);
    }

    @Override
    public JSONObject queryArticles(Map map) throws Exception{
        return this.query(map);
    }

    @Override
    public JSONObject selectArticle(Map map) throws Exception {
        return this.selectp(map);
    }
}
